package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class DiagnosticsSize implements TransactionMode {

    private int beginIndex;
    private int endIndex;
    private SimpleValueSpecification numberOfConditions;

    public DiagnosticsSize(int beginInex, SimpleValueSpecification numberOfConditions) {
        this.beginIndex = beginInex;
        this.endIndex = numberOfConditions.getEndIndex();
        this.numberOfConditions = numberOfConditions;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SimpleValueSpecification getNumberOfConditions() {
        return numberOfConditions;
    }

}
